package xsis.music.service.impl;

import java.io.IOException;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import xsis.music.dao.UserDao;
import xsis.music.model.UserModel;
import xsis.music.service.UserService;
@Service
public class UserServiceImpl implements UserService{
	@Autowired
	private UserDao userDao;
	@Override
	@Transactional
	public void insert(UserModel user)throws IOException{
		userDao.insert(user);
	}
	@Override
	@Transactional
	public void updateAktifasi(UserModel user) throws IOException {
		// TODO Auto-generated method stub
		userDao.updateAktifasi(user);
	}
}
